package apralms

class ProductFact {

	float failRatio = 0f

	static constraints = {
		scheme blank:false
		product blank:false
		
		failRatio min:0f, max:10f
	}

	static belongsTo = [product:Product, scheme:Scheme]
	
	String toString(){
		"${product.name} - ${failRatio}"
	}
}
